<!--
 * @Descripttion: 
 * @Version: 
 * @Author: gaohj
 * @Date: 2022-11-01 16:38:46
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2022-11-01 17:27:27
-->
<!-- <!DOCTYPE html> -->  
<!-- 上面的声明文档类型 要去掉 -->
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            background-color: black;
        }
    </style>
<script type="text/javascript">
	var k=1;
	function xing(){
		var x=Math.floor(Math.random()*1024);
		var y=Math.floor(Math.random()*768);
		document.getElementById("star1").innerHTML="<div style='position:absolute;left:"+x+";top:"+y+";z-index:"+k+"'><img src='xing.gif' width=30px height=30px/></div>";
		x=Math.floor(Math.random()*1024);
		y=Math.floor(Math.random()*768);
		document.getElementById("star2").innerHTML="<div style='position:absolute;left:"+x+";top:"+y+";z-index:"+k+"'><img src='xing.gif' width=30px height=30px/></div>";
		x=Math.floor(Math.random()*1024);
		y=Math.floor(Math.random()*768);
		document.getElementById("star3").innerHTML="<div style='position:absolute;left:"+x+";top:"+y+";z-index:"+k+"'><img src='xing.gif' width=30px height=30px/></div>";
		x=Math.floor(Math.random()*1024);
		y=Math.floor(Math.random()*768);
		document.getElementById("star4").innerHTML="<div style='position:absolute;left:"+x+";top:"+y+";z-index:"+k+"'><img src='xing.gif' width=30px height=30px/></div>";
		x=Math.floor(Math.random()*1024);
		y=Math.floor(Math.random()*768);
		document.getElementById("star5").innerHTML="<div style='position:absolute;left:"+x+";top:"+y+";z-index:"+k+"'><img src='xing.gif' width=30px height=30px/></div>";
		k=k+1;
		// setTimeout("xing()",500);
	}
</script>
</head>

<!-- <body onload="xing()"> -->
<body onload="setInterval(xing,500)">

    <div id="star1"></div>
    <div id="star2"></div>
    <div id="star3"></div>
    <div id="star4"></div>
    <div id="star5"></div>

</body>

</html>